#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Purpose: 
# Created: 04/22/2009
# $Id $
# Copyright (c) 2008,2009 by University College London
# Authors:
# Didrik Pinte --<dpinte@dipole-consulting.com>
#
# This program is free software under the GPL (>=v2)
# Read the file COPYING coming with HydroPlatform for details.
"""
HydroPlatform version information
"""
__version__ = "$Revision: 2872 $"

# $Source$
# $Id: version.py 2872 2009-03-30 10:03:02Z dpinte $

from Thuban.version import get_date, versions as thuban_versions

hydroplatform_branch = "1.0"
hydroplatform_release = "svn"

versions = {}

if hydroplatform_release[0:3] == "svn":
    version = '%s %s-%s' % (hydroplatform_branch, hydroplatform_release,
                            get_date('%Y%m%d'))
    longversion = '%s\n%s' % (version, get_date('%Y%m%d'))
else:
    version = hydroplatform_branch + "." + hydroplatform_release
    longversion = 'Release Version ' + version

versions['hydroplatform'] = version
versions['hydroplatform-long'] = longversion

versions.update(thuban_versions)

if __name__ == "__main__":
    print longversion